const mongoose = require('mongoose');

mongoose.connect('mongodb://localhost/photo-app');

const schema = new mongoose.Schema({ name: String, path: String });

module.exports = mongoose.model('Photo', schema);
